import java.util.ArrayList;

public class MetaClass2 {
	private ArrayList<MetaMethod> methodList = new ArrayList<MetaMethod>();
	private ArrayList<MetaAttribute> attributeList = new ArrayList<MetaAttribute>();
	private String className;
	private String superClassName;
	private String classModifier;

	public MetaClass() {
	}

	public void addMethod(MetaMethod m) {
		methodList.add(m);
	}
	public void addAttribute(MetaAttribute a) {
		attributeList.add(a);
	}

	public String getMethodDetails() {
		String ret = "";
		for(int i = 0; i < methodList.size(); i++) {
			ret += "Name: " + methodList.get(i).getName();
			ret += " Modifier: " + methodList.get(i).getModifier();
			ret += " Is Static: " + methodList.get(i).getStatic();
			ret += " Return Type: " + methodList.get(i).getReturnType();
			ret += "\n";
		}
		return ret;
	}

	public String getAttributeDetails() {
		String ret = "";
		for(int i = 0; i < attributeList.size(); i++) {
			ret += "Name: " + methodList.get(i).getName();
			ret += " Modifier: " + methodList.get(i).getModifier();
			ret += " Is Static: " + methodList.get(i).getStatic();
			ret += " Type: " + methodList.get(i).getReturnType();
			ret += "\n";
		}
		return ret;
	}

	public void setClassName(String className) {
		this.className = className;
	}
	public String getClassName() {
		return className;
	}
	public void setSuperClassName(String superClassName) {
		this.superClassName = superClassName;
	}
	public String getSuperClassName() {
		return superClassName;
	}
	public void setClassModifier(String classModifier) {
		this.classModifier = classModifier;
	}
	public String getClassModifier() {
		return classModifier;
	}

}
